Resource URL: /platform/<<version=1>>/snapshot/schedules/<SID>

    Overview: This resource applies the standard collection item pattern to
              individual OneFS snapshot schedules.

     Methods: GET, PUT, DELETE

********************************************************************************

Method GET: Retrieve the schedule.

       URL: GET /platform/<<version=1>>/snapshot/schedules/<SID>

There are no query arguments for this method.

GET response body schema:
{
  "type": "object", 
  "properties": {
    "schedules": {
      "items": {
        "type": "object", 
        "properties": {
          "next_run": {
            "type": "integer", 
            "description": "Unix Epoch time of next snapshot to be created."
          }, 
          "name": {
            "type": "string", 
            "description": "The schedule name."
          }, 
          "schedule": {
            "type": "string", 
            "description": "The isidate compatible natural language description of the schedule."
          }, 
          "pattern": {
            "type": "string", 
            "description": "Pattern expanded with strftime to create snapshot name."
          }, 
          "alias": {
            "type": [
              "string", 
              "null"
            ], 
            "description": "Alias name to create for each snapshot."
          }, 
          "duration": {
            "type": [
              "integer", 
              "null"
            ], 
            "description": "Time in seconds added to creation time to construction expiration time."
          }, 
          "path": {
            "type": "string", 
            "description": "The /ifs path snapshotted."
          }, 
          "id": {
            "type": "integer", 
            "description": "The system ID given to the schedule."
          }, 
          "next_snapshot": {
            "type": "string", 
            "description": "Formatted name (see pattern) of next snapshot to be created."
          }
        }
      }, 
      "type": "array"
    }
  }
}

********************************************************************************

Method PUT: Modify the schedule. All input fields are optional, but one or more
            must be supplied.

       URL: PUT /platform/<<version=1>>/snapshot/schedules/<SID>

There are no query arguments for this method.

PUT request body schema:
{
  "type": "object", 
  "properties": {
    "name": {
      "required": false, 
      "type": "string", 
      "description": "The schedule name."
    }, 
    "schedule": {
      "required": false, 
      "type": "string", 
      "description": "The isidate compatible natural language description of the schedule."
    }, 
    "pattern": {
      "required": false, 
      "type": "string", 
      "description": "Pattern expanded with strftime to create snapshot names."
    }, 
    "alias": {
      "required": false, 
      "type": [
        "null", 
        "string"
      ], 
      "description": "Alias name to create for each snapshot."
    }, 
    "duration": {
      "minimum": 0, 
      "type": [
        "null", 
        "integer"
      ], 
      "description": "Time in seconds added to creation time to construction expiration time.", 
      "required": false
    }, 
    "path": {
      "required": false, 
      "type": "string", 
      "description": "The /ifs path snapshotted."
    }
  }
}

There is no response body for this method.

********************************************************************************

Method DELETE: Delete the schedule. This does not affect already created
               snapshots.

          URL: DELETE /platform/<<version=1>>/snapshot/schedules/<SID>

There are no query arguments for this method.

There is no response body for this method.
